package net.xdclass.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lixin
 * @since 2024-09-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cart_task")
@ApiModel(value="CartTask对象", description="")
public class CartTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "商品id")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "购买数量")
    @TableField("buy_num")
    private Integer buyNum;

    @ApiModelProperty(value = "商品标题")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "锁定状态锁定LOCK  完成FINISH-取消CANCEL")
    @TableField("lock_state")
    private String lockState;

    @TableField("out_trade_no")
    private String outTradeNo;

    @TableField("create_time")
    private LocalDateTime createTime;


}
